docs(adr): ADR-022 — origin variables + Polonius-style loan solver (Refs #177) — surgical refile of #398#407
Merged
Merged
Conversation
…efs #177) Surgically reconstructed from PR #398 (stale-base, 386 phantom commits) onto current main, preserving the linear_bindings work from #397 which landed during this session. Three changes: - docs/decisions/0022-polonius-origin-variables.adoc — long-form ADR (347 lines) - .machine_readable/6a2/META.a2ml — structured [[adr]] block ADR-022 (143 lines) - lib/borrow.ml — single in-comment edit pointing readers at ADR-022, preserving the linear_bindings field + LinearCapturedByClosure error variant + helpers that #397 landed. Owner ratified the architectural bundle 2026-05-27: OCaml Polonius solver in lib/borrow_polonius/, surface-syntax fully elided for v1, M1–M4 stage gates with lexical checker as merge oracle through M3. Closes #398. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
🔍 Hypatia Security ScanFindings: 54 issues detected
View findings[
{
"reason": "Action actions/checkout@v6 needs attention",
"type": "unpinned_action",
"file": "publish-jsr.yml",
"action": "pin_sha",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Action denoland/setup-deno@v2 needs attention",
"type": "unpinned_action",
"file": "publish-jsr.yml",
"action": "pin_sha",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in affine-vscode-publish.yml",
"type": "unknown",
"file": "affine-vscode-publish.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in casket-pages.yml",
"type": "unknown",
"file": "casket-pages.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in casket-pages.yml",
"type": "unknown",
"file": "casket-pages.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in ci.yml",
"type": "unknown",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in ci.yml",
"type": "unknown",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in ci.yml",
"type": "unknown",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in ci.yml",
"type": "unknown",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in ci.yml",
"type": "unknown",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
}
]Powered by Hypatia Neurosymbolic CI/CD Intelligence |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Surgical refile of #398. The original branch
core-01/polonius-adrcarried 386 commits' worth of phantom history (commits with main equivalents at different SHAs after squash-merges), and a naive cherry-pick onto current main would have clobbered thelinear_bindingswork landed today via #397.This branch carries only the 3 intended changes from #398:
docs/decisions/0022-polonius-origin-variables.adoc(347 lines) — long-form ADR.machine_readable/6a2/META.a2ml(143 lines) — structured[[adr]]blocklib/borrow.ml(5 lines net) — single in-comment edit in the closing residual-TODO block, pointing readers at ADR-022Owner ratified the architectural bundle 2026-05-27: OCaml Polonius solver in
lib/borrow_polonius/, surface-syntax fully elided for v1, M1–M4 stage gates with lexical checker as merge oracle through M3.Closes
Closes #398 (the stale-base original).
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com